<template>
	<AppSpan
		:name="column.name"
		:editorType="getEditorType()"
		:datatype="getDataType()"
		:value="record[column.dataIndex]"
		:context="context"
		:viewParams="viewParams"
		:valueFormat="column.valueFormat"
		:codeListTag="column.codeListTag"
	>
	</AppSpan>
</template>
<script setup lang="ts">
import { DataTypeUtil } from '@/core';
import { gridColumnProps } from '../grid';
const props = defineProps(gridColumnProps);
const getEditorType = (): string => {
	//  TODO
	return '';
};

const getDataType = (): string => {
	if (props.column && props.column.stdDataType) {
		return DataTypeUtil.toString(props.column.stdDataType as number);
	}
	return 'text';
};
</script>
